LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly)
LEAD Technologies, Inc

TryGetValue Method






The key whose value to get.
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Gets the value associated with the specified key.
Syntax
public virtual bool TryGetValue( 
   TKey key,
   out TValue value
)
'Declaration
 
Public Overridable Function TryGetValue( _
   ByVal key As TKey, _
   ByRef value As TValue _
) As Boolean
'Usage
 
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
public virtual bool TryGetValue( 
   TKey key,
   out TValue value
)
 function Leadtools.Dicom.AddIn.ThreadSafeDictionary.TryGetValue( 
   key ,
   value 
)
public:
virtual bool TryGetValue( 
   TKey^ key,
   [Out] TValue^ value
) 

Parameters

key
The key whose value to get.
value
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

true if the object that implements IDictionary contains an element with the specified key; otherwise, false.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionkey is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ThreadSafeDictionary<TKey,TValue> Class
ThreadSafeDictionary<TKey,TValue> Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features